home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 March / PCWorld_2007-03_cd.bin / domacnost a kancelar / scribus / scribus-1.3.3.7-win32-install.exe / lib / lib-tk / Tkconstants.py < prev    next >
Text File  |  2004-06-01  |  2KB  |  111 lines

  1. # Symbolic constants for Tk
  2.  
  3. # Booleans
  4. NO=FALSE=OFF=0
  5. YES=TRUE=ON=1
  6.  
  7. # -anchor and -sticky
  8. N='n'
  9. S='s'
  10. W='w'
  11. E='e'
  12. NW='nw'
  13. SW='sw'
  14. NE='ne'
  15. SE='se'
  16. NS='ns'
  17. EW='ew'
  18. NSEW='nsew'
  19. CENTER='center'
  20.  
  21. # -fill
  22. NONE='none'
  23. X='x'
  24. Y='y'
  25. BOTH='both'
  26.  
  27. # -side
  28. LEFT='left'
  29. TOP='top'
  30. RIGHT='right'
  31. BOTTOM='bottom'
  32.  
  33. # -relief
  34. RAISED='raised'
  35. SUNKEN='sunken'
  36. FLAT='flat'
  37. RIDGE='ridge'
  38. GROOVE='groove'
  39. SOLID = 'solid'
  40.  
  41. # -orient
  42. HORIZONTAL='horizontal'
  43. VERTICAL='vertical'
  44.  
  45. # -tabs
  46. NUMERIC='numeric'
  47.  
  48. # -wrap
  49. CHAR='char'
  50. WORD='word'
  51.  
  52. # -align
  53. BASELINE='baseline'
  54.  
  55. # -bordermode
  56. INSIDE='inside'
  57. OUTSIDE='outside'
  58.  
  59. # Special tags, marks and insert positions
  60. SEL='sel'
  61. SEL_FIRST='sel.first'
  62. SEL_LAST='sel.last'
  63. END='end'
  64. INSERT='insert'
  65. CURRENT='current'
  66. ANCHOR='anchor'
  67. ALL='all' # e.g. Canvas.delete(ALL)
  68.  
  69. # Text widget and button states
  70. NORMAL='normal'
  71. DISABLED='disabled'
  72. ACTIVE='active'
  73. # Canvas state
  74. HIDDEN='hidden'
  75.  
  76. # Menu item types
  77. CASCADE='cascade'
  78. CHECKBUTTON='checkbutton'
  79. COMMAND='command'
  80. RADIOBUTTON='radiobutton'
  81. SEPARATOR='separator'
  82.  
  83. # Selection modes for list boxes
  84. SINGLE='single'
  85. BROWSE='browse'
  86. MULTIPLE='multiple'
  87. EXTENDED='extended'
  88.  
  89. # Activestyle for list boxes
  90. # NONE='none' is also valid
  91. DOTBOX='dotbox'
  92. UNDERLINE='underline'
  93.  
  94. # Various canvas styles
  95. PIESLICE='pieslice'
  96. CHORD='chord'
  97. ARC='arc'
  98. FIRST='first'
  99. LAST='last'
  100. BUTT='butt'
  101. PROJECTING='projecting'
  102. ROUND='round'
  103. BEVEL='bevel'
  104. MITER='miter'
  105.  
  106. # Arguments to xview/yview
  107. MOVETO='moveto'
  108. SCROLL='scroll'
  109. UNITS='units'
  110. PAGES='pages'
  111.